package com.example.design.shejimoshi.action.strategy;

public class StrategyTest {
    public static void main(String[] args) {
        Context context = new Context(new OperatorAdd());
        System.out.println("10 + 5 = " + context.executeStrategy(10, 5));

        Context context1 = new Context(new OperatorSubtract());
        System.out.println("10 - 5 = " + context1.executeStrategy(10, 5));
    }
}
